<template>
  <div class="common-layout">
    <el-container>
      <el-aside width="200px">
        <div class="logo">
          <!-- <h1>LOGO</h1> -->
        </div>
        <LeftMenu></LeftMenu>
      </el-aside>
      <el-container>
        <el-header>
          <TopMenu></TopMenu>
        </el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>
<script lang="ts" setup>
import LeftMenu from '@/components/LeftMenu.vue'
import TopMenu from '@/components/TopMenu.vue'
// import { useStore } from 'vuex';
// const store = useStore()
</script>
<style lang="scss" scoped>
.common-layout {
  .el-aside {
    background-color: rgb(84, 92, 100);
  }

  .el-header {
    background-color: rgb(225, 225, 224);
  }

  .el-main {
    background-color: #fff;
  }
}

.logo {
  width: 100%;
  height: 100px;
  background-color: rgb(42, 160, 179);
  text-align: center;
  line-height: 200px;
}

// 高度100%
.el-aside,
.el-container,
.common-layout,
#app,
body,
html {
  height: 100%;
}
</style>